home *** CD-ROM | disk | FTP | other *** search
- #define CURSES_LIBRARY 1
- #include <curses.h>
- #undef nonl
-
- #ifdef PDCDEBUG
- char *rcsid_nonl = "$Header: C:\CURSES\portable\RCS\nonl.c 2.1 1993/06/18 20:19:19 MH Rel MH $";
- #endif
-
-
-
-
- /*man-start*********************************************************************
-
- nonl() - disable newline control
-
- X/Open Description: nonl()
- This function disables the translation of newline into a
- carriage return and a line-feed on output, and a carriage return
- is translated into a newline on input. Initially, the translations
- do occur. By disabling these translations, curses is able to
- make better use of the line-feed capability, resulting in faster
- cursor motion.
-
- PDCurses Description:
-
- X/Open Return Value:
- The nonl() function returns OK on success and ERR on error.
-
- X/Open Errors:
- No errors are defined for this function.
-
- Portability:
- PDCurses int nonl( void );
- X/Open Dec '88 int nonl( void );
- BSD Curses nonl() defined as a macro
- SYS V Curses int nonl ( void );
-
- **man-end**********************************************************************/
-
- int nonl(void)
- {
- #ifdef PDCDEBUG
- if (trace_on) PDC_debug("nonl() - called\n");
- #endif
-
- _cursvar.autocr = FALSE;
- return( OK );
- }
-